﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DecisionTree
{
    public class Range
    {
        public int Length { get; private set; }
        public int Max { get; set; }
        public int Min { get; set; }

        public Range(int min, int max)
        {
            this.Min = min;
            this.Max = max;
            this.Length = max - min + 1;
        }

        public override string ToString()
        {
            return this.Min.ToString() + "-" + this.Max.ToString();
        }    }
}
